﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoodsInvoicing.BLL.Service;
using GoodsInvoicing.DAL.DAO.UserRole;

namespace GoodsInvoicing.BLL.ServiceImpl
{
    public class GI_RoleService : IGI_RoleService
    {
        private GI_RoleDAO dao;
        public GI_RoleDAO GI_RoleDAO 
        { 
            get { return dao; } 
            set { dao = value; } 
        }

        public Model.UserRole.GI_Role Get(int id)
        {
            return GI_RoleDAO.Get(id);
        }

        public IList<Model.UserRole.GI_Role> GetAll()
        {
            return GI_RoleDAO.GetAll();
        }

        public int Save(Model.UserRole.GI_Role entity)
        {
            return GI_RoleDAO.Save(entity);
        }

        public void Update(Model.UserRole.GI_Role entity)
        {
            GI_RoleDAO.Update(entity);
        }

        public void Delete(Model.UserRole.GI_Role entity)
        {
            GI_RoleDAO.Delete(entity);
        }
    }
}
